<div ng-show="authenticated">
    <p>Welcome <b>{{user.firstname}} {{user.lastname}}</b></p>
    <p>Your authority(s)
    <code ng-repeat="authority in user.authorities">
        {{authority.authority |limitTo:999:5}}
    </code>
    </p>
</div>

<div ng-show="!authenticated">
    <p>Hi there.Guest</p>
</div>

<p>Click the links below and see the result</p>

<div style="margin-bottom: 10px;">
    <button type="button" class="btn btn-info" ng-click="getUserInfo()">/api/whomi</button>
    <button type="button" class="btn btn-info" ng-click="getAllUserInfo()">/api/user/all</button>
</div>

<div class="alert {{responseBoxClass}}" ng-show="serverResponse">
    <b>Serve Response:</b>
    <pre>Path:/{{serverResponse.config.url}}</pre>
    <pre>Method:{{serverResponse.config.method}}</pre>
    <pre>Status:{{serverResponse.status}}</pre>
    <pre>Date:{{serverResponse.data}}</pre>

</div>